package com.dzx.design.behavioral.chainofresponsibility;

/**
 * @author dzx
 * @ClassName:
 * @Description:
 * @date 2019年08月15日 09:34:16
 */
public class Test {
    public static void main(String[] args){
        Approver articleApprover = new ArticleApprover(); //手记批准者
        Approver videoApprover = new VideoApprover(); //视频批准者
        Course course = new Course("java设计模式","文章" ,"dd" );
        articleApprover.setNextApprover(videoApprover); //责任链核心设置下一个批准者
        articleApprover.deploy(course);
    }
}
